import request from '@/utils/request'

//登录
export function login(data) {
  return request({
    url: '/cdc-system/login/token',
    method: 'post',
    data
  })
}
//获取用户信息
export function getInfo(params) {
  return request({
    url: '/cdc-system/current/user/profile',
    method: 'get',
    params
  })
}

//修改当前登录用户密码
export function editPassword(data) {
  return request({
    url: '/cdc-system/current/user/login/update/password',
    method: 'post',
    data
  })
}

//获取字典数据列表
export function getdictlist(params) {
  return request({
    url: '/cdc-system/system/dict/list',
    method: 'get',
    params
  })
}







